import java.io.File;

import eu.catlab.bbgs.Credits;


public class Main 
{
	public static void main (String args[])
	{
		Credits credits = new Credits ("browser-based-games", "http://www.gambic.com/");
		
		credits.setEmail("daedelson@gmail.com");
		credits.setOpenID("http://id.browser-based-games.org/user/daedeloth/");
		
		credits.setPrivateKeyFile (new File ("key.pkcs8"));
		
		int creds = credits.getCredits();
		System.out.println ("You have " + creds + " credits.");
		
		String url = credits.requestCredits(100, "Test", "http://www.google.com/", "test action");
		System.out.println ("Request URL: " + url);
	}
}
